<?php
namespace app\admin\validate;

use think\Validate;

class Search extends Validate
{
    protected $rule = [
        'category' => 'require',
    ];

    protected $message = [
        'category.require'  => '不能为空',
    ];
}